package com.neusoft.controller;

import com.neusoft.domain.Result;
import com.neusoft.utils.OssUtil;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

@RestController
@RequestMapping("/common")
public class CommonController {
    @PostMapping("/fileUpload")
    public Result fileUpload(@RequestParam("file") MultipartFile file) {
        String s = OssUtil.uploadFile(file);
        return Result.success(s);
    }
}
